package com.koocloud.electroplatemanage.mapper;

import com.koocloud.electroplatemanage.pojo.ProcessParameter;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProcessParameterMapper {

    //根据工艺规程查询所有基础数据
    ProcessParameter selectByProcessSpecification(String ProcessSpecification);

    //根据工单号查询所有基础数据
    List<ProcessParameter> selectByWorkOrderNumber(String workOrderNumber);

    //根据上级id查询当前工艺规程的所有工序过程
    List<ProcessParameter> selectByFatherId(Integer id);

    //新增一条数据
    int insert(ProcessParameter processParameter);

    //逻辑删除一条数据
    int delete(@Param("id")String id, @Param("userId")String userId, @Param("deleteFlag") String deleteFlag);

    //根据工单号修改一条数据
    int update(ProcessParameter processParameter);

}
